package cn.gdut.chengcai.enums;

/**
 * 建议反馈类型
 *
 * @author gates
 *
 */
public enum FeedbackType {
	DEFAULT(2), // 默认
	COMPLAIN(1), // 投诉
	ADVISE(2), // 建议
	COOPERATE(3), // 合作
	CONSULT(4), // 咨询
	REPORT(5), // 举报
	OTHERS(99);// 其他

	private int value;

	private FeedbackType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public String getString() {
		return getString(this.value);
	}

	public static String getString(Integer value) {
		String result = "未知";
		if (null == value) {
			return result;
		}
		if (value == FeedbackType.COMPLAIN.getValue()) {
			result = "投诉";
		} else if (value == FeedbackType.ADVISE.getValue()) {
			result = "建议";
		} else if (value == FeedbackType.COOPERATE.getValue()) {
			result = "合作";
		} else if (value == FeedbackType.CONSULT.getValue()) {
			result = "咨询";
		} else if (value == FeedbackType.REPORT.getValue()) {
			result = "举报";
		} else if (value == FeedbackType.OTHERS.getValue()) {
			result = "其他";
		}
		return result;
	}
}